From 0d95c5dfe283aad55a8475aedc7eb126b35597b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 24 Jul 2019 08:10:37 +0200 Subject: [PATCH] passwordentry: Normalize boolean value --- gtk/gtkpasswordentry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index 2c6c3553ac..8515ba2b5c 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -470,6 +470,8 @@ gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry, g_return_if_fail (GTK_IS_PASSWORD_ENTRY (entry)); + show_peek_icon = !!show_peek_icon; + if (show_peek_icon == (priv->peek_icon != NULL)) return; -- 2.30.2